Page({
  data: {
    tabs: [
      { title: 'Page', anchor: 'a', pageList: [{ title: '水印', extra: '表单水印' }, { title: '验证码', extra: '手机验证码' }] },
      { title: '组件', anchor: 'b', badgeText: '新', pageList: [{ title: 'View', extra: 'View' }, { title: 'Swiper', extra: 'Swiper' }, { title: 'View', extra: 'View' }, { title: 'Swiper', extra: 'Swiper' }, { title: 'View', extra: 'View' }, { title: 'Swiper', extra: 'Swiper' }, { title: 'Swiper', extra: 'Swiper' }, { title: 'Swiper', extra: 'Swiper' }, { title: 'Swiper', extra: 'Swiper' }] },
    ],
    left: true,
    type: '',
    top: '',
  },
  onLoad() {},
  defaultTaptop() {
    this.setData({
      left: true,
      type: 'primary',
      top: 'default',
    });
  },
  defaultTapleft() {
    this.setData({
      left: false,
      type: 'default',
      top: 'primary',
    });
  },
});